package com.css.fxfzypg.modules.rating.expertRating.constants;

/**
 * 专家评分状态
 */
public enum KpExpertRatingStatus {
    UN_RATING(0, "待评分"),
    UN_COMMIT(1, "待提交"),
    COMMITTED(2, "已提交"),
    STOP(3, "停止评分");

    private final int code;
    private final String remark;

    KpExpertRatingStatus(int code, String remark) {
        this.code = code;
        this.remark = remark;
    }

    public int getCode() {
        return code;
    }

    public String getRemark() {
        return remark;
    }

    public static KpExpertRatingStatus getByCode(Integer code) {
        for (KpExpertRatingStatus e : KpExpertRatingStatus.values()) {
            if (e.getCode() == code) {
                return e;
            }
        }
        return null;
    }
}
